import { CustomAdGroup } from "../platform/CustomAdGroup";
import { NativeGroup } from "../platform/NativeGroup";
import { _decorator, Component, Node, ProgressBar, Label, Prefab, AudioClip, CCString, Enum } from 'cc';
import { AppConst } from "../const/Const";
const { ccclass, property } = _decorator;
/**
 * 广告配置
 */
@ccclass("appConfig")
export class appConfig extends Component {

    @property
    public isActive: boolean = false;

    @property({
        type: Enum(AppConst)
    })
    public appConst: AppConst = AppConst.WX;
    @property
    public appId: string = "";
    @property({
        tooltip: "banner广告id",
        displayName: "banner广告id",
        type: [CCString]
    })
    public bannerIdList: Array<string> = new Array<string>();
    @property({
        tooltip: "video广告id",
        displayName: "video广告id",
        type: CCString
    })
    public videoIdList: Array<string> = new Array<string>();
    @property({
        tooltip: "inter广告id",
        displayName: "inter广告id",
        type: CCString
    })
    public interIdList: Array<string> = new Array<string>();
    @property({
        tooltip: "qq block广告id",
        displayName: "qq block广告id",
        type: CCString
    })
    public blockIdList: Array<string> = new Array<string>();
    @property({
        tooltip: "gameBanner广告id",
        displayName: "gameBanner广告id",
        type: CCString
    })
    public gameBannerIdList: Array<string> = new Array<string>();
    @property({
        tooltip: "Portal广告id",
        displayName: "Portal广告id",
        type: CCString
    })
    public gamePortalIdList: Array<string> = new Array<string>();
    @property({
        tooltip: "native广告id",
        displayName: "native广告id",
        type: CCString
    })
    public nativeList: Array<NativeGroup> = new Array<NativeGroup>();
    @property({
        tooltip: "native广告id",
        displayName: "native广告id",
        type: CCString
    })
    public BoxPortalIdList: Array<string> = new Array<string>();
    @property({
        tooltip: "custom广告id",
        displayName: "custom广告id",
        type: [CustomAdGroup]
    })
    public customIdList: Array<CustomAdGroup> = new Array<CustomAdGroup>();
    @property({
        tooltip: "代码版本号",
        displayName: "代码版本号",
    })
    public version: string = "";
    @property({
        tooltip: "后台数据地址",
        displayName: "后台数据地址",
    })
    public url: string = "";

    @property({
        tooltip: "excel数据地址，不填是本地的",
        displayName: "excel数据地址",
    })
    public excelUrl: string = "";

    @property({
        tooltip: "secret",
        displayName: "secret",
    })
    public secret: string = "";
}